package IO流.综合练习;

import cn.hutool.core.util.ReUtil;
import cn.hutool.http.HttpUtil;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

public class txtx {
    /*<img class="lazy" src="//img95.699pic.com/desgin_photo/40015/9802_list.jpg!/fh/130" alt="麻辣火锅海报图片" title="麻辣火锅海报">

     */
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("F\\name.txt"));
        //创建一个数组储存数据
        ArrayList<String> arr=new ArrayList<>();
        String b;
        while ((b= br.readLine())!=null){
            arr.add(b+"-1");
        }
        BufferedWriter bw=new BufferedWriter(new FileWriter("F\\name.txt"));
        for (String s : arr) {
            bw.write(s);
            bw.newLine();
        }
        //释放资源
        bw.close();
        br.close();
    }
}
